package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/*
远程调用spu查询
 */
@FeignClient(name = "goods")
public interface SpuFeign {
    //根据spuid远程调用查询spu实体的信息
    @GetMapping("/spu/findSpuBySpuId/{id}")
    public Result<Spu> findSpuBySpuId(@PathVariable("id") String id);
}
